<template>
  <div>
    <h1>{{msg}}</h1>
    <h2>{{obj.name}}</h2>
    <h3>{{obj.age >= 18 ? '成年了' : '未成年'}}</h3>
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: "Hello,Vue",
      obj: {
        name: "小Vue",
        age: 9,
      },
    };
  },
};
</script>

<style>
</style>